package org.smog.core.exception;

import lombok.Data;
import org.smog.core.exception.enums.ExceptionLevel;

/**
 * 基础用户友好异常,用户友好提示用户异常
 * 异常等级 3
 *
 * @Description: Created by IntelliJ IDEA.
 * @project_name: smogTemp
 * @time: 2020-05-14 11:17
 * @email: 17685306043@163.com
 * @author: huangZhongYao
 */
@Data
public abstract class BaseFriendlyException extends BaseException {
    public BaseFriendlyException(String message) {
        super(message, 600, ExceptionLevel.NONE.getValue());
    }

    public BaseFriendlyException(String message, int code) {
        super(message, code, ExceptionLevel.NONE.getValue());
    }

    public BaseFriendlyException(String message, Throwable cause) {
        super(message, cause);
    }
}
